package me.boot.db.mybatis.utils.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@ApiModel("自定义查询条件")
public class QC {

    @ApiModelProperty(value = "实体目标属性,驼峰结构", notes = "须与目标实体内的属性保持一致", example = "name")
    private String o;

    /**
     * 操作符，如： 等于、大于、小于等
     * {@link OP 枚举}
     */
    @ApiModelProperty(value = "操作符，无视大小写", notes = "参见OP枚举", example = "EQ")
    private String op;

    @ApiModelProperty(value = "比较值", notes = "比较值的形式由操作符决定", example = "张三")
    private Object v;
}
